import Vue from 'vue'
import Router from 'vue-router'
import news from './components/news/new.vue'
import pics from './components/news/pic.vue'
import homeContainter from './components/common/homeContainter.vue'
import vipContainter from './components/common/vipContainer.vue'
import cartContainer from './components/common/cartContainer.vue'
import searchContainer from './components/common/searchContainer.vue'
import newsinfo from './components/news/newDetail.vue'
import picDetail from './components/news/picDetail.vue'
Vue.use(Router)

export default new Router({
  linkActiveClass: 'mui-active',
  routes: [
    
      {
        path:'/',
        redirect:'/home'
      },
      {
        path:'/home',
        name:'homeContainter',
        component:homeContainter,
      
      },
      {
        path:'/vip',
        name:'vipContainter',
        component:vipContainter
        
      },
      {
          path:'/cart',
          name:'cartContainer',
          component:cartContainer
      },
      {
        path:'/search',
        name:'searchContainer',
        component:searchContainer
      },
      {
        path:'/home/news',
        component:news,
      
      },
      {
        path:'/home/pics',
        component:pics
      },
      {
        path:'/home/newsinfo/:id',
        component:newsinfo
      },
      {
        path:'/home/picDetail/:id',
        component:picDetail
      }
      
  ]
})
